package com.itheima.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.pojo.Result;
import com.itheima.pojo.Setmeal;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.RequestBody;

public interface SetmealService extends IService<Setmeal> {
    @Transactional
    Result add(@RequestBody Setmeal setmeal);

    @Transactional
    Result getbyid(String id);

    Result page(String name, Integer page, Integer pageSize);

    @Transactional
    Result delect(String ids);

    @Transactional
    Result auto(int status, String ids);

    @Transactional
    Result update(@RequestBody Setmeal setmeal);

    Result checkList(String categoryId, String status);

    Result checkDetail(String id);
}
